﻿@model SuperiorModel.TPagedModelList<SuperiorModel.ShopAppModel>
<table class="layui-table" id="AppList" lay-filter="test">
    <thead>
        <tr>
            <th>商城ID</th>
            <th>店主ID</th>
            <th>商城名称</th>
            <th>商城地址</th>
            <th>商城类型</th>
            <th>支付方式</th>
            <th>创建时间</th>
            <th>修改时间</th>
            <th>备注</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model.TList)
        {
            <tr>
                <td>@item.Id</td>
                <td>@item.ShopAdminId</td>
                <td>@item.ShopName</td>
                <td>
                @if (item.AppType == 2)
                {
                    <a class="layui-btn layui-btn-normal layui-btn-xs layui-btn-mini showUrl" href="javascript:void(0);" url="@(SuperiorCommon.ConfigSettings.Instance.WebUrl + "/Home/Index?spid=" + item.Id + "&said=" + item.ShopAdminId)">显示地址</a>
                    
                }
                

                </td>
               
                <td>
                    @switch (item.AppType)
                    {
                        case 1:
                            <span>小程序</span>
                            break;
                        case 2:
                            <span>H5</span>
                            break;
                    }
                </td>
                <td>@(item.PayType==1?"我司代收":"自有支付")</td>
                <td>@item.CreateTime</td>
                <td>@item.UpdateTime</td>
                <td>@item.Remark</td>
                <td>
                    @switch (item.AppType)
                    {
                        case 1:
                            <a class="layui-btn layui-btn-normal layui-btn-xs layui-btn-mini" href="/ShopApp/Edit?id=@item.Id">修改</a>
                            <a class="layui-btn layui-btn-normal layui-btn-xs layui-btn-mini" href="/ShopApp/CheckVersion?id=@item.Id">发布/更新</a>
                            break;
                        case 2:
                            <a class="layui-btn layui-btn-normal layui-btn-xs layui-btn-mini" href="/ShopApp/Edit_H5?id=@item.Id">修改</a>
                            break;
                    }
                   
                </td>
            </tr>
        }
    </tbody>
</table>
@Html.Partial("_TPager", Model.PagingResult)